package com.lovo.boot.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author luo
 * @description 分页对象
 * @date 2020/11/25 21:12
 */
@ApiModel(value = "分页对象")
@Data
public class PageVO<T> implements Serializable {

    /**结果列表*/
    @ApiModelProperty(value = "结果列表")
    private List<T> content;
    /**总条数*/
    @ApiModelProperty(value = "总条数")
    private Long totalElements;
    /**页码*/
    @ApiModelProperty(value = "页码")
    private Long pageNum;
    /**每页显示条数*/
    @ApiModelProperty(value = "每页显示条数")
    private Long pageSize;
}
